package com.xyx.hw0725;

public class test01 {
	private String brand;
	private String color;

	public test01() {

	}

	public test01(String brand) {
		this.brand = brand;
		System.out.println(brand);
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public static void main(String[] args) {
		test01 car = new test01("B M W");
		new test01("B M ");
		test01 car1 = new test01("ggg");
		car.setBrand("aa");
		car.brand="as";

	}

}
